package com.lyw.forum.service;

import com.lyw.forum.pojo.request.ArticleReplyCreateRequest;
import com.lyw.forum.pojo.response.ArticleReplySelectResponse;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface IArticleReplyService {

    /**
     * 新增帖子的回复
     * @param articleReplyCreateRequest
     */
    @Transactional
    void creat(ArticleReplyCreateRequest articleReplyCreateRequest);

    /**
     * 根据帖子id查询所有回复
     * @param id 帖子id
     * @return 回复集合
     */
    List<ArticleReplySelectResponse> selectByArticleId (Integer id);
}
